package com.hrt.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;



@Entity
@Table(name = "hrt_member")
public class HRTMember implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 会员id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "HRT_MENBER_ID", nullable = false)
	private Long id;
	
	/**
	 * 会员注册名称,注册页面显示，让会员手工输入
	 * 
	 */
	@Column(name = "hrt_mbrName")
	private String mbrName;
	/**
	 * 登录密码
	 * 
	 */
	@Column(name = "hrt_password")
	private String password;
	/**
	 * 会员手机
	 * 
	 */
	@Column(name = "hrt_mobile", nullable = false)
	private String mobile;
	public Date getRegisterTime() {
		return registerTime;
	}


	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}

	/**
	 * 注册邮箱
	 * 
	 */
	@Column(name = "hrt_mail")
	private String mail;
	
	/**
	 * 页面注册验证码
	 */
	@Column(name = "register_time")
	private Date registerTime;
	/**
	 * 手机验证码
	 * 
	 * 
	 */
	@Column(name = "hrt_mobileCode")
	private String mobileCode;
	/**
	 * 邮箱验证码
	 * 
	 * 
	 */
	@Column(name = "mailCode")
	private String mailCode;
	/**
	 * 是否验证手机0未验证1已验证
	 * 
	 * 
	 */
	@Column(name = "isMobileVaild")
	private Integer isMobileVaild = 0;
	/**
	 * 邮箱是否通过验证
	 * 
	 * 
	 */
	@Column(name = "isMailVaild")
	private Integer isMailVaild = 0;
	/**
	 * 真实姓名
	 * 
	 * 
	 */
	@Column(name = "hrt_realName", unique = true)
	private String realName;
	/**
	 * 会员地址
	 * 
	 */
	@Column(name = "hrt_address")
	private String address;
	/**
	 * 0 男 1女 2其他
	 * 
	 */
	@Column(name = "hrt_sex")
	private Integer sex = 0;
	/**
	 * 根据出生年月，自动换算出年龄，自动填充
	 * 
	 */
	@Column(name = "hrt_age")
	private Integer age;
	/**
	 * 出生年月
	 * 
	 */
	@Column(name = "hrt_born")
	private java.sql.Date born;
	/**
	 * 头像图片，如果没有，使用默认图片
	 * 
	 */
	@Column(name = "hrt_pic")
	private String pic="D:\\HRTWeb3\\HRTWEB\\upload\\tree.png";
	/**
	 * 会员设置的问题
	 * 
	 */
	@Column(name = "hrt_sequestion")
	private String sequestion;
	/**
	 * 会员设置的答案
	 * 
	 * */
	@Column(name = "hrt_seanswer")
	private String seanswer;
	/**
	 * 0正常 1已验证，2未验证，3冻结
	 * 
	 */
	@Column(name = "statu")
	private Integer statu = 0;
	/**
	 * 0未删除 1已删除
	 * 
	 */
	@Column(name = "isdelete")
	private Integer isdelete = 0;

	/**
	 * 等级信息
	 */
	@Column(name = "hrt_level")
	private Integer level;
	/**
	 * 备注
	 * 
	 */
	@Column(name = "hrt_note")
	private String note;
	
	public HRTMember() {
	}




	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}






	public HRTMember(String mail, String mobile, String password,
			String mobileCode, String mailCode) {
		super();
		this.mail = mail;
		this.mobile = mobile;
		this.password = password;
		this.mobileCode = mobileCode;
		this.mailCode = mailCode;
	}

	public String getMbrName() {
		return mbrName;
	}

	public void setMbrName(String mbrName) {
		this.mbrName = mbrName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getMobileCode() {
		return mobileCode;
	}

	public void setMobileCode(String mobileCode) {
		this.mobileCode = mobileCode;
	}

	public String getMailCode() {
		return mailCode;
	}

	public void setMailCode(String mailCode) {
		this.mailCode = mailCode;
	}

	public Integer getIsMobileVaild() {
		return isMobileVaild;
	}

	public void setIsMobileVaild(Integer isMobileVaild) {
		this.isMobileVaild = isMobileVaild;
	}

	public Integer getIsMailVaild() {
		return isMailVaild;
	}

	public void setIsMailVaild(Integer isMailVaild) {
		this.isMailVaild = isMailVaild;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public java.sql.Date getBorn() {
		return born;
	}

	public void setBorn(java.sql.Date born) {
		this.born = born;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public String getSequestion() {
		return sequestion;
	}

	public void setSequestion(String sequestion) {
		this.sequestion = sequestion;
	}

	public String getSeanswer() {
		return seanswer;
	}

	public void setSeanswer(String seanswer) {
		this.seanswer = seanswer;
	}

	public Integer getStatu() {
		return statu;
	}

	public void setStatu(Integer statu) {
		this.statu = statu;
	}

	public Integer getIsdelete() {
		return isdelete;
	}

	

	

	public void setIsdelete(Integer isdelete) {
		this.isdelete = isdelete;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	
}
